<div class="home-linkuteis">

<?php
    $cont = 0;
    foreach($this->linkuteis as $linkuteis){ ?>

    <div class="item">
        <a href="<?php echo $linkuteis['LNK_URL']; ?>" target="_blank">
            <div class="cnt-txt">
                <div class="txt" style="background-color: #<?php echo $linkuteis['DCP_COR']; ?>"><?php echo $linkuteis['LNK_NOM']; ?></div>
            </div>
        </a>
    </div>
<?php } ?>
    <a href="<?php echo $this->baseUrl($this->modulo.'/linkuteis'); ?>" class="maislinkuteis">mais links úteis</a>
</div>

<h2><span>&rtrif;</span> Mural de Mensagens</h2>
<?php if(count($this->mural) > 0){ ?>
<ul class="lista-mural-recados">
    <?php foreach($this->mural as $mural){ 
        $style = $mural['MRM_STA'] == 1 ? 'opt':'';
    ?>
    <li itemid="<?php echo $mural['MRM_ID']?>">
        <div class="col-data dt_<?php echo $mural['MRM_ID']?>">
            <?php if($mural['MRM_STA'] == 1) { ?>
            <span class="n-lido">não lido</span>
            <?php } else if($mural['MRM_STA'] == 2) { ?>
            <span class="lido">lido</span>
            <?php } ?>
        </div>
        <div class="col-txt">
            <div class="data-nome">
                <?php echo substr($mural['MRM_DAT'],8,2).'/'.substr($mural['MRM_DAT'],5,2);?> às <?php echo substr($mural['MRM_HOR'],1,4);?>h | <?php echo $mural['USU_NOME']; ?>
                | <a href="javascript:void(0)" class="verbtn ver-mais <?php echo $style;?>" itemid="<?php echo $mural['MRM_ID']; ?>" >Ver mensagem</a>
            </div>
            <p><?php echo $mural['MRM_ASS'];?></p> 
            <p class="msg-txt"><?php echo $mural['MRM_TXT'];?></p> 
            <p class="msg-rsp">resposta</p> 
        </div>
    </li>
    <?php } ?> 
    <li>
        <?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
    </li>
</ul>
<?php } ?>

<link rel="stylesheet" href="<?php echo $this->urlbase.'/public/media/css/hint.min.css' ?>" />

<div class="sidebar">
    <div class="cnt-calendario">
        <span class="seta">&ltrif;</span>
        <div class="titulo">Meus Horários</div>
        <div class="mes"><?php echo ucfirst(Datetools::texto_Mes(date('m'))); ?></div>
        <div class="calendario">
            <?php echo Calendario::buscaCalendarioEad('','',$this->dia); ?> 
        </div>
    </div>
    <div class="lista-agenda">
        <ul>
        <?php foreach($this->horarios as $hor){ ?>
            <li><?php echo $hor; ?></li>
        <?php } ?>
        </ul>
    </div>
    
    <div class="cnt-box-list">
        <h2>Próximos Vestibulares &ltrif;</h2>
        <ul>
        <?php 
            foreach($this->ves as $c){   
                $count++;
                if( $c['DIA'] < 10) $c['DIA'] = "0".$c['DIA'];
        ?>
            <li><strong><?php echo $c['DIA'].'/'.$c['MES'];?></strong> | <?php echo $c['CAL_NOM'];?>.</li>
        <?php } ?>
        </ul>
    </div>
    
</div>


